{% extends "base_aggregator.html" %}

{% block content %}
<div class="span-3 last textblock">	
	{% if object_list %}		
		{% for item in object_list %}
	<div class="block last">
		<h2><a href="{{ BLOCKS_AGGREGATOR_URL }}{{ item.feed.id }}/{{ item.id }}/">{{ item.title }}</a></h2>
		<div class="bbody">
			<span class="feed"><a href="{{ item.feed.public_url }}">{{ item.feed.title }}</a></span>
			<span class="date">{{ item.date_modified|date:"j F Y H:m" }}</span>
		</div>
		<div class="bbody">
			{{ item.summary }}
		</div>
		<div class="bbody links">
			<a href="{{ BLOCKS_AGGREGATOR_URL }}{{ item.feed.id}}/{{ item.id }}/">read more</a>
			<a href="{{ item.link }}">read original</a>
			<a href="{{ BLOCKS_AGGREGATOR_URL }}{{ item.feed.id }}/">read more from '{{ item.feed.title }}'</a>
		</div>
	</div>
		{% endfor %}
		
		{% include "core/pagination.html" %}
		
	{% else %}
	<p>no feeds</p>
	{% endif %}
</div>
{% endblock %}

{% block sidebar %}
{% if feed_list %}
<div class="block feeds clear">
	<h2>Feeds</h2>
	<div class="bbody">
	{% for item in feed_list %}
		<p><span class="feed"><a href="{{ BLOCKS_AGGREGATOR_URL }}{{ item.id }}/">{{ item.title }}</a></span></p>
	{% endfor %}
	</div>
</div>
{% endif %}
{% endblock %}
